﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ViewPIMSecondTestbyDT.aspx.cs" Inherits="ViewbyProduct_ViewPIMSecond_ViewPIMSecondTestbyDT" Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <script type="text/javascript" src="../../js/my97datepicker/WdatePicker.js"></script>
    <div>  
    &nbsp; &nbsp; &nbsp; &nbsp;
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div style="width: 80%; clear:left; float:left;">   
    <div>  
                    起始时间：
                    <input type="text" runat="server" id="TextBox1" 
                    onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"/>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="TextBox1" ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 终止时间：
                    <input type="text" runat="server" id="TextBox2" 
                    onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"/>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="TextBox2" ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
    </div> 
    </div> 
    </ContentTemplate> 
    </asp:UpdatePanel> 
    <div style="width: 15%; float:left ">                    
                    <asp:Button ID="Button1" runat="server" Text="查 询" onclick="Button1_Click" 
                        ValidationGroup="VGroup1" />
        </div>
    
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
    <ContentTemplate>
    <div style="clear:both ">
        <br />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" 
            CellPadding="3" CellSpacing="1" GridLines="None" Width="100%" 
            AllowPaging="True" EmptyDataText="没有相关数据！" 
            onpageindexchanging="GridView1_PageIndexChanging" 
            onselectedindexchanged="GridView1_SelectedIndexChanged" PageSize="20" 
            DataKeyNames="ProductSN,TestTime">
            <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
            <Columns>
                <asp:CommandField HeaderText="详细" ShowSelectButton="True" />
                <asp:HyperLinkField DataNavigateUrlFields="ProductSN" 
                    DataNavigateUrlFormatString="~/ViewbyProduct/ViewProductState/ProductSNLifeTime.aspx?ProductSN={0}" 
                    DataTextField="ProductSN" HeaderText="腔体序列号" 
                    NavigateUrl="~/ViewbyProduct/ViewProductState/ProductSNLifeTime.aspx" 
                    Text="ProductSN" />
                <asp:BoundField DataField="TestTime" HeaderText="测试时间" />
                <asp:BoundField DataField="ProductTypeID" HeaderText="产品类型" />
                <asp:BoundField DataField="UserID" HeaderText="测试员" />
                <asp:BoundField DataField="PCIP" HeaderText="IP地址" />
                <asp:BoundField DataField="SignalSource1" HeaderText="信号源1" />
                <asp:BoundField DataField="SignalSource2" HeaderText="信号源2" />
                <asp:BoundField DataField="SpectrumAnalyzer" HeaderText="频谱仪" />
                <asp:BoundField DataField="TestStep" HeaderText="测试阶段" />
                <asp:BoundField DataField="IsPass" HeaderText="是否通过" />
            </Columns>
            <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
            <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
            <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
        </asp:GridView>
        <br />
        </div>
        </ContentTemplate> 
    </asp:UpdatePanel> 
    </div> 
</asp:Content>

